CFLAGS=-g -Wall -I/usr/local/include/opencv \
-I/usr/local/include \
-Imser \
-Istruct \
-Ipreprocess \
-Idebug \
-ImserLocate \
-Iann_train \
-Iother \
-Isvm_train \
-IcharacterIdentify \
-L/usr/local/lib/

OPENCVLIB=-lopencv_contrib \
-lopencv_core \
-lopencv_features2d \
-lopencv_flann \
-lopencv_gpu \
-lopencv_highgui \
-lopencv_imgproc \
-lopencv_legacy \
-lopencv_ml \
-lopencv_nonfree \
-lopencv_objdetect \
-lopencv_ocl \
-lopencv_photo \
-lopencv_stitching \
-lopencv_superres \
-lopencv_video \
-lopencv_videostab \
-lrt -lpthread -lm -ldl

OBJS=main.cpp \
ann_train/annTrain.cpp \
mser/mser2.cpp \
preprocess/preprocess2.cpp debug/debug.cpp \
mserLocate/mserLocate.cpp \
other/other.cpp \
svm_train/svm_train.cpp \
characterIdentify/characterIdentify.cpp

CXX=g++
demo:$(OBJS)
	$(CXX) $(OBJS) $(CFLAGS) $(OPENCVLIB) -o $@ 

clean:
	rm -f demo
